import App from './App'
import {base} from '@/service/index.js'
//引入socket.io模块
import io from '@/until/socket.io.js'

//未登录拦截器
import interceptor from '@/until/interceptor.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.prototype.$base=base
//挂载用户名
Vue.prototype.$username=uni.getStorageSync('username')
//挂载用户手机号
Vue.prototype.$phone=uni.getStorageSync('phone')
//挂载用户唯一uid
Vue.prototype.$uid=uni.getStorageSync('uid')
//挂载地址$
Vue.prototype.$id=uni.getStorageSync('id')

Vue.prototype.$text=uni.getStorageSync('text')

Vue.prototype.$ress=uni.getStorageSync('ress')

//挂在页面刷新方法
Vue.prototype.$Pagesfresh=function(){
	uni.startPullDownRefresh()
	setTimeout(()=>{
	 uni.stopPullDownRefresh()
	window.location.reload()
	},3000)
}
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif